package com.guigu.pd.base.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.base.dao.AgencyScopeDao;
import com.guigu.pd.base.entity.AgencyScopeEntity;
import com.guigu.pd.base.service.AgencyScopeService;


@Service("agencyScopeService")
public class AgencyScopeServiceImpl extends ServiceImpl<AgencyScopeDao, AgencyScopeEntity> implements AgencyScopeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AgencyScopeEntity> page = this.page(
                new Query<AgencyScopeEntity>().getPage(params),
                new QueryWrapper<AgencyScopeEntity>()
        );

        return new PageUtils(page);
    }

}